﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharp3
{
    class Rectnagle
    {
        int width, height;
        public Rectnagle(int a, int b)
        {
            width = a;
            height = b;
        }
        public int Area()
        {
            return (width * height);
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            Rectnagle recta = new Rectnagle(3, 4);
            Rectnagle rectb = new Rectnagle(5, 6);
            Console.WriteLine("rect a:{0}", recta.Area());
            Console.WriteLine("rect b:{0}", rectb.Area());
        }
    }
}
